package com.study.configuration;

import java.util.function.Supplier;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author tanglingyu
 * @Date: 2021/09/06/ 9:46
 * @Description
 */
@Configuration(proxyBeanMethods = false)
public class MyConf4 {

  @Bean
  public Test11 getTest11() {
    Supplier<Test11> test11Supplier = Test11::new;
    return test11Supplier.get();
  }

  static class Test11 {

    private String name = "1234";

  }

}
